<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class MyController extends Controller
{
    //
    public function input(Request $request)
    {
        //方法一通过url传参
        $name=$request->input('name','dyj');
        // 方法二通过路由传参
        // $name=$request->name;
        return 'name值' .$name;
    }
}
